Platform Explorer / Nuxeo Platform 2021.54

Extension point classFilter

Documentation

This can be used to allow additional classes to be accessible by the scripting engine. The deny element can be used to disallow classes allowed by previous contributions. By default, no classes are allowed.

@since 10.2

    <classFilter>
        <allow>java.util.ArrayList</allow>
        <allow>java.util.UUID</allow>
        <deny>java.io.File</deny>
        <deny>java.lang.Class</deny>
    </classFilter>

To deny everything from previous contributions and only allow specific classes, use:

    <classFilter>
        <deny>*</deny>
        <allow>java.util.ArrayList</allow>
    </classFilter>

Contribution Descriptors

  • Class: org.nuxeo.automation.scripting.internals.ClassFilterDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-automation-scripting-2021.54.6.jar /OSGI-INF/classfilter-contrib.xml
    <extension point="classFilter" target="org.nuxeo.automation.scripting.internals.AutomationScriptingComponent">
        <classFilter>
          <allow>java.text.SimpleDateFormat</allow>
          <allow>java.util.ArrayList</allow>
          <allow>java.util.Arrays</allow>
          <allow>java.util.Collections</allow>
          <allow>java.util.UUID</allow>
          <allow>org.apache.commons.codec.digest.DigestUtils</allow>
          <allow>org.nuxeo.runtime.transaction.TransactionHelper</allow>
          <allow>org.nuxeo.ecm.core.api.Blobs</allow>
          <allow>org.nuxeo.ecm.core.api.impl.blob.StringBlob</allow>
          <allow>org.nuxeo.ecm.core.api.impl.blob.JSONBlob</allow>
          <allow>org.nuxeo.ecm.core.api.NuxeoException</allow>
        </classFilter>
      </extension>